export const getCode = () => {
	return new Promise((resolve, reject) => {
		wx.login({
			success: res => {
				// 获取code
				resolve(res.code);
			},
			fail: err => {
				reject(err); // 处理错误
			}
		});
	});
}